package com.eshop.model;

import java.math.BigDecimal;
import java.sql.Date;

public class Order {
    private int order_id;
    private String order_code;
    private int user_id;
    private int order_status;
    private String order_address;
    private BigDecimal order_postalfee;
    private Date order_date;
    private String order_postcode;
    private String order_postname;

    public Order() {
    }

    public Order(int order_id, String order_code, int user_id, int order_status, String order_address, BigDecimal order_postalfee, Date order_date, String order_postcode, String order_postname) {
        this.order_id = order_id;
        this.order_code = order_code;
        this.user_id = user_id;
        this.order_status = order_status;
        this.order_address = order_address;
        this.order_postalfee = order_postalfee;
        this.order_date = order_date;
        this.order_postcode = order_postcode;
        this.order_postname = order_postname;
    }

    public int getOrder_id() {
        return order_id;
    }

    public String getOrder_code() {
        return order_code;
    }

    public int getUser_id() {
        return user_id;
    }

    public int getOrder_status() {
        return order_status;
    }

    public String getOrder_address() {
        return order_address;
    }

    public BigDecimal getOrder_postalfee() {
        return order_postalfee;
    }

    public Date getOrder_date() {
        return order_date;
    }

    public String getOrder_postcode() {
        return order_postcode;
    }

    public String getOrder_postname() {
        return order_postname;
    }

    public void setOrder_id(int order_id) {
        this.order_id = order_id;
    }

    public void setOrder_code(String order_code) {
        this.order_code = order_code;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public void setOrder_status(int order_status) {
        this.order_status = order_status;
    }

    public void setOrder_address(String order_address) {
        this.order_address = order_address;
    }

    public void setOrder_postalfee(BigDecimal order_postalfee) {
        this.order_postalfee = order_postalfee;
    }

    public void setOrder_date(Date order_date) {
        this.order_date = order_date;
    }

    public void setOrder_postcode(String order_postcode) {
        this.order_postcode = order_postcode;
    }

    public void setOrder_postname(String order_postname) {
        this.order_postname = order_postname;
    }

    @Override
    public String toString() {
        return "Order{" +
                "order_id=" + order_id +
                ", order_code='" + order_code + '\'' +
                ", user_id=" + user_id +
                ", order_status=" + order_status +
                ", order_address='" + order_address + '\'' +
                ", order_postalfee=" + order_postalfee +
                ", order_date=" + order_date +
                ", order_postcode='" + order_postcode + '\'' +
                ", order_postname='" + order_postname + '\'' +
                '}';
    }
}
